<?php
/**
 * Created by PhpStrom
 * User: 郭碧云
 * Date: 2021/3/10 10:46
 * Desc:
 */

namespace App\Models\Admin;


use App\Models\BaseModel;

class Site extends BaseModel {
    protected $table = "site";
    protected $fillable = ['name','expire_at','status'];
    protected $casts = [
        'created_at' => 'datetime:Y-m-d',
        'updated_at' => 'datetime:Y-m-d',
//        'expire_at' => 'date',
    ];

    //获取全部站点
    public function getAll() {
        return self::all();
    }
}
